let time = ''
export const getTime = () => {
  let hours = new Date().getHours()
  if (hours < 12) {
    time = '早上好'
  } else if (hours <= 14) {
    time = '中午好'
  } else if (hours <= 18) {
    time = '下午好'
  } else {
    time = '晚上好'
  }
  return time
}
